home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / apps / 386 / doc / spsheet.doc < prev    next >
Encoding:
Text File  |  1989-06-04  |  8.9 KB  |  195 lines

  1. -The data editor is designed for efficient entry of data for 
  2. further analysis.
  3. -Data will be in the form of variables, with a column for each 
  4. variable.
  5. -Commands are issued either through the menu or from the keyboard 
  6. on the command line.
  7. -The first set of commands deals with columns. These allow you to 
  8. insert a column, blank a column, or delete columns. If you choose 
  9. the "Del Many" option you will be asked for the number of columns 
  10. to delete. That number of columns, starting at the column in which 
  11. the cursor resides and moving to the right, will be removed. 
  12. Blanking a column does not remove it but just erases the data.
  13. -You may either load or save an individual column, as well. This 
  14. allows you to save a data variable from one data set and bring it 
  15. into another.
  16. -The actions available for rows are the same as those for columns, 
  17. except that you cannot save or load a row. One additional row 
  18. operation is available. The "delete Marked" option checks the 
  19. value of each row in the column in which the cursor resides. If 
  20. the value is other than zero then the row is removed. In no case 
  21. will the program reduce the number of rows below 1.
  22. -The decimals selections are fairly straight forward. They simply 
  23. affect how the data will be displayed. If the "Global" option is 
  24. checked then any action will apply to all columns. If not, then 
  25. the action affects only the column in which the cursor currently 
  26. resides.
  27. -The "Item" menu allows for the insertion or deletion of 
  28. individual data items. This is useful if you find after typing in 
  29. a whole series of data points that you forgot to enter the third 
  30. one or that you entered the third one twice. It is also useful for 
  31. creating lagged variables to be used elsewhere in the program.
  32. -The "Miscellaneous" section has naturally a variety of options. 
  33. By selecting "Mean", "Std Dev", "Largest", "Smallest" or quartiles 
  34. you will get the corresponding statistic for the variable in which 
  35. the cursor resides.
  36. -The "Help" option will bring up this help file (as you can see).
  37. -The "RELABEL" option allows you to change the labels which are at 
  38. the left hand side of the screen.
  39. -The remaining options allow you to move to other menus. 
  40.  
  41. -Various operations can be performed on the variables by entering 
  42. commands on the command line.
  43.  
  44. The first group affect the variable in which the cursor is 
  45. located. Assume that variable Y contains the cursor.
  46. The operations are:
  47.  
  48. a+b         Column Y is the sum of column a and column b
  49. a+x         Column Y is the sum of column a and a constant "x"
  50. a-b         Column Y is column a minus column b
  51. a-x         Column Y is column a minus a constant x
  52. x-a         Column Y is x minus column a
  53. a*b         Column Y is the product of column a and column b
  54. a*x         Column Y is the product of column a and a constant "x"
  55. a/b         Column Y is column a divided by column b
  56. a/x         Column Y is column a divided by a constant "x"
  57. x/a         Column Y is x divided by column a
  58. a^b         Column Y is column a to the power of column b
  59. a^x         Column Y is a to power of constant "x"
  60. a<b         Column Y is 1 if column a is less than column b,
  61.             otherwise it is 0
  62. a<x         Column Y is 1 if column a is less than a constant "x",
  63.             otherwise it is 0
  64. a>b         Column Y is 1 if column a is greater than column b,
  65.             otherwise it is 0
  66. a>x         Column Y is 1 if column a is less than a constant "x",
  67.             otherwise it is 0
  68. a\b         Column Y is the minimum of column a and column b
  69. a\x         Column Y is the minimum of a and a constant "x"
  70. a|b         Column Y is the maximum of column a and column b
  71. a|x         Column Y is the maximum of a and a constant "x"
  72. a!b         Swaps column a and b. The column where the cursor
  73.             resides is not affected unless it is in column a or b
  74. a!x         Column a is set equal to the constant "x"
  75. a@x         Column Y is the accumulation of the values in column 
  76.             a, where interest is asumed to be at "x" percent. The 
  77.             first payment is assumed to be at the end of the 
  78.             period
  79. a@b         Similar to a@x, except that the percent interest rates 
  80.             for each period are in column b
  81. a&x         Similar to a@x, except that the payments are at the 
  82.             start of the period
  83. a&b         Similar to a@b, except that the payments are at the 
  84.             start of the period
  85. a$x         Column Y is the present value of all remaining periods 
  86.             in a, taken at interest rate x%, Payments are at the 
  87.             end of the period
  88. a$b         Similar to a$x, except that the interest rates are 
  89.             given in column b
  90. a#x         Similar to a$x, except that payments are at the start 
  91.             of the period
  92. a#b         Similar to a$b, except that payments are at the start 
  93.             of the period
  94. a%x         Calculates the rate of interest, such that the present 
  95.             value of the values in column a equal the constant 
  96.             "x". Payments in a are assumed to be at the end of 
  97.             each period
  98. a%b         Column Y is set equal to a series of rates, such that 
  99.             the present value of the items in a are equal to the 
  100.             values in b
  101.  
  102. -In addition, there are commands that operate on one column only:
  103. COUNTERxx   Creates a variable in column Y which has the natural 
  104. numbers from 1 to xx in it
  105. deg(a)      Column Y is a conversion of column a from radians to 
  106.             degrees
  107. rad(a)      Column Y is a conversion of column a from degrees to 
  108.             radians
  109. mult(a)     Column Y is the running product of column a
  110. rot(a)      Column Y is the reverse order of column a
  111. fact(a)     Column Y is the factorial of the values in a
  112. abs(a)      Column Y is the absolute value of a
  113. sqr(a)      Column Y is the square root of column a
  114. sin(a)      Column Y is the sine of column a. Radians are assumed
  115. cos(a)      Column Y is the cosine of column a
  116. tan(a)      Column Y is the tangent of column a
  117. asin(a)     Column Y is the arc sine of column a
  118. acos(a)     Column Y is the arc cos of column a
  119. asec(a)     Column Y is the arc secant of column a
  120. atn(a)      Column Y is the arc tangent of column a
  121. log(a)      Column Y is the natural log of column a
  122. log10(a)    Column Y is the log to base 10 of column a
  123. exp(a)      Column Y is "e" to the power of a
  124. exp10(a)    Column Y is 10 to the power of column a
  125. int(a)      Column Y is the next lower integer of a
  126. sinh(a)     Column Y is the hyperbolic sine of a
  127. cosh(a)     Column Y is the hyperbolic cosine of a
  128. tanh(a)     Column Y is the hyperbolic tangent of a
  129. asinh(a)    Column Y is the arc hyperbolic sine of a
  130. acosh(a)    Column Y is the arc hyperbolic cos of a
  131. atanh(a)    Column Y is the arc hyperbolic tan of a
  132.  
  133. amort(amount,term,conv,payts,intr) amortizes a loan of amount 
  134. "amount" over a period of "term" years.
  135. interest is convertible "conv" times per year
  136. there are "payts" payments per year (ie monthly is 12)
  137. the interest rate is specified in percent by "intr"
  138.  
  139. These commands are relatively quick in execution since they 
  140. are not actually parsed as a line of code would be. As you 
  141. have probably noticed, they are all simple operations. B/STAT also 
  142. has a general parser. If the regular commands cannot be used, the 
  143. program reverts to the parser section. The parser section allows 
  144. many, but not all, of the commands above. It allows certain 
  145. modifiers, as well, which are not possible in the simple commands 
  146. above. The mathematical operations supported are:
  147. + - plus and minus
  148. ^ exponentiation
  149. * / multiply and divide
  150. < > = logical less than greater than and equals
  151. \ minimum
  152. | maximum
  153.  
  154. Three other logical operators are:
  155. OR logical or
  156. AND logical and
  157. XOR exclusive or
  158.  
  159. The functions may be combined in any way. Operator hierarchy is 
  160. standard algebraic. When in doubt use brackets. An example of the 
  161. use of these functions might be the following:
  162.  
  163. a*(( b<6) and (c>12))
  164.  
  165. This would create a variable with the same value as variable a 
  166. only for the points where b is less than 6 and c is greater than 
  167. 12
  168.  
  169. Another example is
  170.  
  171. (exp(a)-exp(-a))/(exp(a)+exp(a))
  172.  
  173. This formula is actually the formula for TANH(a) which would 
  174. accomplish the same thing.
  175.  
  176. >axx        Causes the cursor to go to column "a" row "xx"
  177.  
  178. flip        Swaps the rows and columns of the data matrix.
  179.  
  180. Cursor movements can be made using the arrow keys. Holding down 
  181. the "Control" or "Shift" key and pressing the arrow keys causes 
  182. movement of a full page. If you hold down both the "Control" and 
  183. "Shift" keys simultaneously and press an arrow key then you will 
  184. go to the end of the data in that direction.
  185.  
  186. sort(a)        Sorts column a in ascending order. Y is unused
  187. sortall(a,b,c) Sorts whole data set with keys a,b,c. Not all keys 
  188.                are needed, but at least 1 must be used
  189. blank          Column Y is blanked out
  190.  
  191. find(x)        Searches from the current cursor position to the 
  192. next occurrence of the value "x"
  193.  
  194.  
  195.